package com.gitee.feizns.zxw;

import com.gitee.feizns.web.utils.RsaUtils;
import com.gitee.feizns.web.utils.SecurityUtils;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }

    public static void main(String[] args) {
        SecurityUtils.RasKeyPair pair = RsaUtils.getInstance().generatorKeyPair(2048);
        System.out.println(pair.getBase64PrivateKey());
        System.out.println();
        System.out.println(pair.getBase64PublicKey());
    }

}
